body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    color: #555;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.input-section, .result-section {
    margin-bottom: 30px;
}

.lottery-type-selector {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.lottery-type-selector label {
    margin-right: 20px;
    font-weight: bold;
}

.number-input {
    margin: 20px 0;
}

.main-balls, .special-balls {
    margin-bottom: 20px;
}

.ball-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: transform 0.2s;
}

.ball:hover {
    transform: scale(1.1);
}

.ball.selected {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.red-ball {
    background-color: #e53935;
}

.blue-ball {
    background-color: #1e88e5;
}

.yellow-ball {
    background-color: #fdd835;
    color: #333;
}

.green-ball {
    background-color: #43a047;
}

.unselected {
    background-color: #e0e0e0;
    color: #666;
}

.selected-numbers {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.query-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#periodCount {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#queryButton {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#queryButton:hover {
    background-color: #45a049;
}

.result-item {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.result-item.win {
    border-left: 5px solid #4CAF50;
    background-color: #f1f8e9;
}

.result-item.no-win {
    border-left: 5px solid #9e9e9e;
}

.period-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.winning-numbers {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.winning-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.prize-info {
    font-weight: bold;
    margin-top: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
}